<%--<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.opensymphony.xwork2.util.ValueStack"%>
<%@page import="com.lynn.salary.entity.EmpSalaryItem"%>
<%@page import="com.lynn.salary.util.ToolMethod"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%
	ValueStack vs = (ValueStack)request.getAttribute("struts.valueStack");
	List<EmpSalaryItem> detail = (List<EmpSalaryItem>) vs.findValue("detail");
	String rName = ToolMethod.getCharAndNumr(10);
	
	String rId = ToolMethod.getCharAndNumr(10);
%>
<style>
<!--
.lynn-mytable-asignEmp-3232 { 
padding: 10px; 
margin-top: 10px;
width: 370px;
} 

th.assignEmp-adfaji { 
font: bold 12px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; 
color: #4f6b72; 
border-right: 1px solid #C1DAD7; 
border-bottom: 1px solid #C1DAD7; 
border-top: 1px solid #C1DAD7; 
text-align: left; 
background: #CAE8EA  no-repeat; 
padding-top:6px;
padding-bottom:6px;
padding-left:12px;

} 

td.assignEmp-row23 { 
border-right: 1px solid #C1DAD7; 
border-bottom: 1px solid #C1DAD7; 
background: #fff; 
font-size:12px; 
padding-top:6px;
padding-bottom:6px;
padding-left:12px;
color: #4f6b72; 
} 
-->
</style>

<table class="lynn-mytable-asignEmp-3232" cellspacing="0">
	<thead>
		<tr>
			<th class="assignEmp-adfaji" scope="col">名字</th>	
			<th class="assignEmp-adfaji" scope="col">操作</th>
		</tr>
	</thead>
<%  for(int i=0;i<detail.size();i++) { 
		EmpSalaryItem item = detail.get(i);
%>
	<tr>
		<td class="assignEmp-row23">
			<%=item.getName() %>
		</td>
		<td class="assignEmp-row23">
			<img alt="查看" src="<%=basePath %>images/005.jpg" style="cursor:pointer;">
			<img imgId="<%=rId %>" alt="分配" src="<%=basePath %>images/007.jpg" typeId="<%=item.getId() %>" value="<%=item.getName() %>" style="cursor:pointer;">
		</td>
	</tr>

<% } %>
</table>
<br/>
注：
<img alt="查看" src="<%=basePath %>images/005.jpg" style="width: 14px;height: 14px;">查看
<img alt="分配" src="<%=basePath %>images/007.jpg" style="width: 14px;height: 14px;">分配
<br/>
<br/>
<script>
	if(typeof lynn == "undefined") {
		lynn = {};
	}
	var lis = [];
	$("img[imgId=<%=rId %>]").click(function(event){
		var type = "d";
		var typeId = $(event.currentTarget).attr("typeId");
		var v = $(event.currentTarget).attr("value");
		for(var i=0;i<lis.length;i++) {
			lis[i](type,typeId,v);
		}

	});
	lynn.addDetailLis = function(s){
		lis.push(s);
	}

</script>
--%>